﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace MagicBag.CRM.Service
{
    public class Class1 : BaseService
    {
        private string myName = "";
        /// <summary>
        ///
        /// </summary>
        /// <param name="context"></param>
        /// /MagicBag.CRM.Service/Class1.crm?act=GetUserInfo&s=11111
        public void GetUserInfo(HttpContext context)
        {
            //输出json
            myName = "{\"total\":100,\"rows\":[{\"code\":\"1\",\"name\":\"一\"},{\"code\":\"2\",\"name\":\"二\"}]}";
            ResponseJson(context, myName);

            //输出xml
            // myName = "<root>abc</root>";
            // ResponseXml(context, myName);
        }


    }
}
